<h1>Listing tasks</h1>

<table>
  <tr>
    <th>Story</th>
    <th>Parent task</th>
    <th>State</th>
    <th>Description</th>
    <th>Created by</th>
    <th>Claimed by</th>
  </tr>

<% @tasks.each do |task| %>
  <tr>
    <td><%=h task.story %></td>
    <td><%=h task.parent_task %></td>
    <td><%=h task.state %></td>
    <td><%=h task.description %></td>
    <td><%=h task.created_by %></td>
    <td><%=h task.claimed_by %></td>
    <td><%= link_to 'Show', task %></td>
    <td><%= link_to 'Edit', edit_task_path(task) %></td>
    <td><%= link_to 'Destroy', task, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New task', new_task_path %>